﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using X13.Libs;

namespace X13.Mapping
{
    public class FencePrimitive : PhysicsPrim
    {
        public Matrix World
        {
            get
            {
                return
                    Matrix.CreateScale(this.Scale)
                    *
                    Matrix.CreateRotationX(Rotation.X) *
                    Matrix.CreateRotationY(Rotation.Y) *
                    Matrix.CreateRotationZ(Rotation.Z)
                    *
                    Matrix.CreateTranslation(Converter.ConvertVect(this.Position));
            }
        }

        public FencePrimitive(MinefieldPosition Position)
            : base(Position)
        {
            this.Rescale(Globals.MineTileScale);
        }
    }
}
